<!doctype html>
<html>
<head>
   <style type="text/css">
    span li{
        float: left;
        margin-left: 20px;
        margin-top: 20px;
    position: relative;
    left:530px;
    font-size: 30px;
    }   
       
   </style>
</head>
<body>
<include file="Common/top" /> 
<div class="container clearfix">
    
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="/jscss/admin">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">车型管理</span></div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                <form action="">
                    <table class="search-tab">
                        <th width="200">欢迎进入盘古租车后台管理</th>
                    </table>
                </form>
            </div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
                <div class="result-title">
                    <div class="result-list">
                        <a href="edit/" class="btn btn-primary btn2"><i class="icon-font"></i>新增车辆</a>
                        
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th class="tc" width="5%"><input class="allChoose" name="" id='check' type="checkbox"></th>
                            <th>ID</th>
                            <th>车型</th>
                            <th>城市</th>
                            <th>图片</th>
                            <th>描述</th>
                            
                            <th>操作</th>
                        </tr>
                        {volist name="list" id="vo"}
                        <tr>
                            <td class="tc"><input name="ids[]" value="{$vo.id}" class="check" type="checkbox"></td>
                            <td>{$vo.id}</td>
                            <td>{$vo.brand}</td>
                            <td>{$vo.city}</td>
                            
                            
                            <td><img width="80" height="60" src="{$vo.pic}"></td>
                            <td>{$vo.desc}</td>
                            <td>
                                <a class="link-update" href="edit?id={$vo.id}">修改</a>
                                <a class="link-del" onclick="return confirm('确定删除改文章吗？');" href="del?id={$vo.id}">删除</a>
                            </td>
                        </tr>
                        {/volist}

                    </table>
                     <span>{$list->render()}</span>
                </div>
            </form>
        </div>
    </div>
    <!--/main-->
</div>
</body>
</html>
<script type="text/javascript">
    $("#check").click(function(){
        if($(this).attr("checked"))
        {
            $(".check").attr("checked","checked")
        }else
        {
            $(".check").removeAttr("checked")
        }
    })
</script>